import request from '@/utils/request'
//获取待办事宜
export function getTodoMessageList(query) {
  return request({
    url: '/system/todo/message/list',
    method: 'get',
    params: query
  })
}

//详情
export function getTodoMessageDetail(query) {
  return request({
    url: '/system/todo/message/get',
    method: 'get',
    params: query
  })
}
//已办
export function getTodoMessageHandle(data) {
  return request({
    url: '/system/todo/message/handle',
    method: 'post',
    data: data
  })
}
//已读
export function getTodoMessageRead(data) {
  return request({
    url: '/system/todo/message/batch/read',
    method: 'post',
    data: data
  })
}

// 一键已办
//已办
export function handelSomeMsg(data) {
  return request({
    url: '/system/todo/message/handles',
    method: 'post',
    data
  })
}
